#ifndef CONNECTEDTITLEWIN_H
#define CONNECTEDTITLEWIN_H

#include <QWidget>
#include <QLabel>
#include <QPushButton>

#include "splitline.h"

class ConnectedTitleWin : public QWidget
{
    Q_OBJECT
public:
    ConnectedTitleWin();

    ~ConnectedTitleWin();

    void setMobileName(QString mobileName);

    void setShowMobileWinBtn(bool isShow);

    void setLightUI();

    void setDarkUI();

Q_SIGNALS:

    void sigDisconnectBtnClicked();

    void sigSetMobileWindow();

private:
    QLabel *m_stateLab = nullptr;
    QLabel *m_iconLab = nullptr;
    QLabel *m_mobileNameLab = nullptr;
    QPushButton *m_showMobileWinBtn = nullptr;
    QPushButton *m_disconnectBtn = nullptr;
    SplitLine *m_splitLine = nullptr;

public Q_SLOTS:

    void onClicked(void);
};

#endif // CONNECTEDTITLEWIN_H
